<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>js的一元运算符</title>
		<script>
			var num = 3;
			var a = ++num;
			document.write(num+"<br />");
			document.write(a+"<br />");
			
			var b = +"123"
			document.write(typeof(b)+"<br />");
			document.write(b+1+"<br />");
			
			var flag = +true;
			var f2 = +false;
			
			document.write(flag+"<br />");
			document.write(f2+"<br />");
			
		</script>
	</head>
	<body>
	</body>
</html>
